package com.jzo2o.foundations.service;


import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: Zuo
 * @Date: 2025/3/20 19:35
 * @Description:
 **/
public interface IServeService {
    PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);

    void batch(List<ServeUpsertReqDTO> serveUpsertReqDTOList);

    void updatePrice(Long id, BigDecimal price);

    void onSale(Long id);

    void offSale(Long id);
}
